]> dgit.raspbian.org Git - gnome-shell.git/commit
shell-app: Don't transition to STOPPED while still in the STARTING state
authorMario Sanchez Prada <mario@endlessm.com>
Fri, 29 Sep 2017 10:47:31 +0000 (11:47 +0100)
committerMario Sanchez Prada <mario@endlessm.com>
Fri, 29 Sep 2017 17:10:23 +0000 (18:10 +0100)
commitb5f5a594ba7ad96bf9d9a2bbda214dd7e33f7d47
treef0a35842943589bf06c8b43c53bee1939789c5c5
parent6321bbb77330120432b7cbc80259883d8d057d7f
shell-app: Don't transition to STOPPED while still in the STARTING state

Similar to what it's done in _shell_app_add_window(), rely on calling
shell_app_sync_running_state() when removing windows too, to avoid
transitioning to STOPPED while it's still in the STARTING state.

This makes the logic compliant with the startup notification spec and
prevents stopping an application too early if it has a splash screen
that has been closed before the application's main window is shown.

https://bugzilla.gnome.org/show_bug.cgi?id=787905
src/shell-app.c